package com.yr.ryjk.focus.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;

import com.yr.ryjk.focus.entity.Focus;
import com.yr.ryjk.focus.entity.FocusVO2;
import com.yr.ryjk.focus.entity.FocusVOCensus;

public interface FocusMapper {
    int deleteByPrimaryKey(String focusId);
    
    int insert(Focus record);

    int insertSelective(Focus record);

    Focus selectByPrimaryKey(String focusId);
    
    int selectCountOfFan(String docId);
    
    int selectCountByDocIdAndUserId(String docId,String userId);
    
    int updateByPrimaryKeySelective(Focus record);

    int updateByPrimaryKey(Focus record);

	List<FocusVO2> selectByDocId(int start, int limit, String docId);

	@Delete("delete from focus where doc_id=(select id from doctor where phone=#{0})")
	void deleteByDocPhone(String phone);

	List<FocusVOCensus> selectByUserId(Map<String, Object> params);

	int selectCountByUserId(Map<String, Object> params);
}